package org.jeecg.modules.procurement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 原料采购订单明细
 * @Author: jeecg-boot
 * @Date:   2024-06-07
 * @Version: V1.0
 */
@ApiModel(value="buss_material_procurement_detail对象", description="原料采购订单明细")
@Data
@TableName("buss_material_procurement_detail")
public class BussMaterialProcurementDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**采购计划单id*/
	@Excel(name = "采购计划单id", width = 15)
    @ApiModelProperty(value = "采购计划单id")
    private String procurementPlanId;
	/**采购数量*/
	@Excel(name = "采购数量", width = 15)
    @ApiModelProperty(value = "采购数量")
    private BigDecimal procurementNum;
	/**采购订单表*/
    @ApiModelProperty(value = "采购订单表id")
    private String procurementId;

    @ApiModelProperty(value = "到货价格")
    private BigDecimal procurementArrayPrice;

    @ApiModelProperty(value = "物料id")
    private String materialId;

    @ApiModelProperty(value = "到货日期")
    private String arrivalDate;

    @ApiModelProperty(value = "采购订单表code")
    private String procurementCode;
    /**
     * 采购订单号-物料编号-供应商编号
     */
    @ApiModelProperty(value = "冗余字段")
    private String ext1;
    /**
     *
     */
    @ApiModelProperty(value = "冗余字段")
    private String ext2;
    /**
     *
     */
    @ApiModelProperty(value = "冗余字段")
    private String ext3;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "到货数量")
    private BigDecimal arrivalNum;

    @ApiModelProperty(value = "物料编号")
    private String materialCode;


}
